package com.lanchetech.merchant.controller;

import com.lanchetech.merchant.aop.OperatorLog;
import com.lanchetech.merchant.service.BrandService;
import com.lanchetech.bean.request.PageReq;
import com.lanchetech.bean.response.BasePageResp;
import com.lanchetech.bean.response.BaseResp;
import com.lanchetech.bean.response.ResultData;
import com.lanchetech.entity.Brand;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@Api(value = "品牌接口", tags = "品牌接口")
@RequestMapping("/api/brand")
@RestController
public class BrandController {

    @Autowired
    BrandService brandService;


    @ApiOperation("获取所有品牌列表")
    @GetMapping("/getBrandList")
    public ResultData<List<Brand>> getBrandList() {
        return brandService.getBrandList();
    }
}
